﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Minotaur.App.Core
{
    public class GlobalConst
    {
        public const string GolbalUserData = "GolbalUserData";
        /// <summary>
        /// 业务数据库标识
        /// </summary>
        public const string GolbalBusinessDataBaseTag = "buss";

        /// <summary>
        /// 流程数据库标识
        /// </summary>
        public const string GolbalWFDataBaseTag = "wf";
        /// <summary>
        /// 文件数据库标识
        /// </summary>
        public const string GolbalFileDataBaseTag = "file";

        /// <summary>
        /// 资源数据库标识
        /// </summary>
        public const string GolbalResDataBaseTag = "res";
        /// <summary>
        /// 表单数据库标识
        /// </summary>
        public const string GolbalFormDataBaseTag = "form";

        /// <summary>
        /// 认证方式标识
        /// </summary>
        public const string AuthorizationTokenKey = "Authorization";
        /// <summary>
        /// 请求类型
        /// </summary>
        public const string grant_type = "grant_type";

        /// <summary>
        /// 认证值
        /// </summary>
        public const string BearerPattern = "^Bearer (.*?)$";
        public const string GolbalData = "GolbalData";

        #region 日期格式化
        /// <summary>
        /// 到分
        /// </summary>
        public const string DATE_FORMAT_MINUTES = "yyyy-MM-dd HH:mm";
        /// <summary>
        /// 到天
        /// </summary>
        public const string DATE_FORMAT_DAY = "yyyy-MM-dd";
        /// <summary>
        /// 到小时
        /// </summary>
        public const string DATE_FORMAT_HOURS = "yyyy-MM-dd HH";
        /// <summary>
        /// 到秒
        /// </summary>
        public const string DATE_FORMAT_SECONDS = "yyyy-MM-dd HH:mm:ss";
        /// <summary>
        /// 超级管理员的账号标识
        /// </summary>
        public const string SYSTEM_ADMINISTRATOR_PERSONAL = "administrator";

        public const string SYSTEM_API_VERSION = "SYSTEM_API_VERSION";
        public const string SYSTEM_REQUEST_API_VERSION = "v";
        #endregion

        #region 视图注册

        public static string[] Views = new string[] {
        "menu",
        "table",
        "infopath",
        "fieldmanager",
        "resources",
        "employee",
        "company",
        "home",
        "flowdesign",
        "processdesign",
        "syslog"
        };
        #endregion
    }
}
